<template>
  <div id="app">
    <!--根据路由觉得当前路由内容是否需要被缓存-->
    <keep-alive>
      <router-view v-if="$route.meta.keepalive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepalive"></router-view>
  </div>
</template>

<script>
import './rem/rem'
/*导入rem.js 适配移动端, 1:100 1rem=100px*/

export default {
  name: 'App',
}
</script>

<style>
  @import "../src/assets/css/base.css";
  /*导入通用的css配置*/
  @import "../src/assets/iconfont/iconfont.css"; /*导入通用的字体控制-优化*/
</style>
